namespace UniversalAdminSystem.Domian.SystemSettings.ValueObjects;

public record SettingDescription
{
    public string? Value { get; }
    private SettingDescription(string? value)
    {
        if (value?.Length > 200)
            throw new ArgumentException("设置描述不能超过200字符");
        Value = value;
    }
    public static SettingDescription Create(string? value) => new(value);
    public static implicit operator string?(SettingDescription desc) => desc.Value;
} 